import { BaseBeanData, BaseRuleBeanData } from '@/model/base/baseModel'

export interface GrantBeanData extends BaseBeanData {
  sourceId: string;
  sourceName: string;
  sourceType: string,
  targetType: string,
  targetId: string;
  targetName: string;
  deptId: string;
  deptName: string;
}

export interface GrantList {
  list: Array<GrantBeanData>;
  total: number
}

// 权限类型
export const GrantType = {
  Role: '1',
  Privilege: '2'
}

// 授权类型，授权用户、角色、部门等
export const GrantTargetType = {
  User: '1',
  Role: '2',
  Dept: '3'
}
